amrwb_dep = dependency('opencore-amrwb', version : '>= 0.1.3', required : get_option('amrwbdec'))

if amrwb_dep.found()
  amrwbdec = library('gstamrwbdec',
    ['amrwb.c', 'amrwbdec.c'],
    c_args : ugly_args,
    include_directories : [configinc],
    dependencies : [gstaudio_dep, amrwb_dep],
    install : true,
    install_dir : plugins_install_dir,
  )
  pkgconfig.generate(amrwbdec, install_dir : plugins_pkgconfig_install_dir)
  plugins += [amrwbdec]
endif
